package com.mycar2w.cloud.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * created time 2017/4/1
 *
 * @author ljc
 * @version V1.0
 * 指示
 */
@Entity
@Table(name = "car_system_test_indicator_light", schema = "mycar2wnew", catalog = "")
public class CarSystemTestIndicatorLight {
    private Long id;
    private String rearFogLamp;
    private String stoplight;
    private String rearTurnLamp;
    private String indoorCeilingLamp;
    private String highBeam;
    private String ledHeadlight;
    private String headlightHeightAdjustable;
    private String dippedHeadlight;
    private String reversingLamp;
    private String frontFogLamp;
    private String frontTurnLight;
    private String xenonHeadlamps;
    private String automaticHeadlamp;
    private String headlightCleaning;
    private Long carId;

    @Id
    @Column(name = "id", nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "rear_fog_lamp", nullable = true)
    public String getRearFogLamp() {
        return rearFogLamp;
    }

    public void setRearFogLamp(String rearFogLamp) {
        this.rearFogLamp = rearFogLamp;
    }

    @Basic
    @Column(name = "stoplight", nullable = true)
    public String getStoplight() {
        return stoplight;
    }

    public void setStoplight(String stoplight) {
        this.stoplight = stoplight;
    }

    @Basic
    @Column(name = "rear_turn_lamp", nullable = true)
    public String getRearTurnLamp() {
        return rearTurnLamp;
    }

    public void setRearTurnLamp(String rearTurnLamp) {
        this.rearTurnLamp = rearTurnLamp;
    }

    @Basic
    @Column(name = "indoor_ceiling_lamp", nullable = true)
    public String getIndoorCeilingLamp() {
        return indoorCeilingLamp;
    }

    public void setIndoorCeilingLamp(String indoorCeilingLamp) {
        this.indoorCeilingLamp = indoorCeilingLamp;
    }

    @Basic
    @Column(name = "high_beam", nullable = true)
    public String getHighBeam() {
        return highBeam;
    }

    public void setHighBeam(String highBeam) {
        this.highBeam = highBeam;
    }

    @Basic
    @Column(name = "led_headlight", nullable = true)
    public String getLedHeadlight() {
        return ledHeadlight;
    }

    public void setLedHeadlight(String ledHeadlight) {
        this.ledHeadlight = ledHeadlight;
    }

    @Basic
    @Column(name = "headlight_height_adjustable", nullable = true)
    public String getHeadlightHeightAdjustable() {
        return headlightHeightAdjustable;
    }

    public void setHeadlightHeightAdjustable(String headlightHeightAdjustable) {
        this.headlightHeightAdjustable = headlightHeightAdjustable;
    }

    @Basic
    @Column(name = "dipped_headlight", nullable = true)
    public String getDippedHeadlight() {
        return dippedHeadlight;
    }

    public void setDippedHeadlight(String dippedHeadlight) {
        this.dippedHeadlight = dippedHeadlight;
    }

    @Basic
    @Column(name = "reversing_lamp", nullable = true)
    public String getReversingLamp() {
        return reversingLamp;
    }

    public void setReversingLamp(String reversingLamp) {
        this.reversingLamp = reversingLamp;
    }

    @Basic
    @Column(name = "front_fog_lamp", nullable = true)
    public String getFrontFogLamp() {
        return frontFogLamp;
    }

    public void setFrontFogLamp(String frontFogLamp) {
        this.frontFogLamp = frontFogLamp;
    }

    @Basic
    @Column(name = "front_turn_light", nullable = true)
    public String getFrontTurnLight() {
        return frontTurnLight;
    }

    public void setFrontTurnLight(String frontTurnLight) {
        this.frontTurnLight = frontTurnLight;
    }

    @Basic
    @Column(name = "xenon_headlamps", nullable = true)
    public String getXenonHeadlamps() {
        return xenonHeadlamps;
    }

    public void setXenonHeadlamps(String xenonHeadlamps) {
        this.xenonHeadlamps = xenonHeadlamps;
    }

    @Basic
    @Column(name = "automatic_headlamp", nullable = true)
    public String getAutomaticHeadlamp() {
        return automaticHeadlamp;
    }

    public void setAutomaticHeadlamp(String automaticHeadlamp) {
        this.automaticHeadlamp = automaticHeadlamp;
    }

    @Basic
    @Column(name = "headlight_cleaning", nullable = true)
    public String getHeadlightCleaning() {
        return headlightCleaning;
    }

    public void setHeadlightCleaning(String headlightCleaning) {
        this.headlightCleaning = headlightCleaning;
    }

    @Basic
    @Column(name = "car_id", nullable = true)
    public Long getCarId() {
        return carId;
    }

    public void setCarId(Long carId) {
        this.carId = carId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CarSystemTestIndicatorLight that = (CarSystemTestIndicatorLight) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (rearFogLamp != null ? !rearFogLamp.equals(that.rearFogLamp) : that.rearFogLamp != null) return false;
        if (stoplight != null ? !stoplight.equals(that.stoplight) : that.stoplight != null) return false;
        if (rearTurnLamp != null ? !rearTurnLamp.equals(that.rearTurnLamp) : that.rearTurnLamp != null) return false;
        if (indoorCeilingLamp != null ? !indoorCeilingLamp.equals(that.indoorCeilingLamp) : that.indoorCeilingLamp != null)
            return false;
        if (highBeam != null ? !highBeam.equals(that.highBeam) : that.highBeam != null) return false;
        if (ledHeadlight != null ? !ledHeadlight.equals(that.ledHeadlight) : that.ledHeadlight != null) return false;
        if (headlightHeightAdjustable != null ? !headlightHeightAdjustable.equals(that.headlightHeightAdjustable) : that.headlightHeightAdjustable != null)
            return false;
        if (dippedHeadlight != null ? !dippedHeadlight.equals(that.dippedHeadlight) : that.dippedHeadlight != null)
            return false;
        if (reversingLamp != null ? !reversingLamp.equals(that.reversingLamp) : that.reversingLamp != null)
            return false;
        if (frontFogLamp != null ? !frontFogLamp.equals(that.frontFogLamp) : that.frontFogLamp != null) return false;
        if (frontTurnLight != null ? !frontTurnLight.equals(that.frontTurnLight) : that.frontTurnLight != null)
            return false;
        if (xenonHeadlamps != null ? !xenonHeadlamps.equals(that.xenonHeadlamps) : that.xenonHeadlamps != null)
            return false;
        if (automaticHeadlamp != null ? !automaticHeadlamp.equals(that.automaticHeadlamp) : that.automaticHeadlamp != null)
            return false;
        if (headlightCleaning != null ? !headlightCleaning.equals(that.headlightCleaning) : that.headlightCleaning != null)
            return false;
        if (carId != null ? !carId.equals(that.carId) : that.carId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (rearFogLamp != null ? rearFogLamp.hashCode() : 0);
        result = 31 * result + (stoplight != null ? stoplight.hashCode() : 0);
        result = 31 * result + (rearTurnLamp != null ? rearTurnLamp.hashCode() : 0);
        result = 31 * result + (indoorCeilingLamp != null ? indoorCeilingLamp.hashCode() : 0);
        result = 31 * result + (highBeam != null ? highBeam.hashCode() : 0);
        result = 31 * result + (ledHeadlight != null ? ledHeadlight.hashCode() : 0);
        result = 31 * result + (headlightHeightAdjustable != null ? headlightHeightAdjustable.hashCode() : 0);
        result = 31 * result + (dippedHeadlight != null ? dippedHeadlight.hashCode() : 0);
        result = 31 * result + (reversingLamp != null ? reversingLamp.hashCode() : 0);
        result = 31 * result + (frontFogLamp != null ? frontFogLamp.hashCode() : 0);
        result = 31 * result + (frontTurnLight != null ? frontTurnLight.hashCode() : 0);
        result = 31 * result + (xenonHeadlamps != null ? xenonHeadlamps.hashCode() : 0);
        result = 31 * result + (automaticHeadlamp != null ? automaticHeadlamp.hashCode() : 0);
        result = 31 * result + (headlightCleaning != null ? headlightCleaning.hashCode() : 0);
        result = 31 * result + (carId != null ? carId.hashCode() : 0);
        return result;
    }
}
